//
//  UILabel+LFLabel.m
//  XiangMuXieTong
//
//  Created by lifushuai on 16/5/5.
//  Copyright © 2016年 jiankeyan. All rights reserved.
//

#import "UILabel+LFLabel.h"

@implementation UILabel (LFLabel)
+ (UILabel *)labelWithFont:(UIFont *)font setTextColor:(UIColor *)textColor{
    UILabel *label = [[UILabel alloc]init];
    label.font = font;
    label.textColor = textColor;
    label.textAlignment = NSTextAlignmentCenter;
    label.numberOfLines = 0;
    return label;
}
+ (UILabel *)labelWithFont:(UIFont *)font setTextColor:(UIColor *)textColor setTextAlignment :(NSTextAlignment)textAlignment{
    UILabel *label = [UILabel labelWithFont:font setTextColor:textColor];
    label.textAlignment = textAlignment;
    return label;
}
+ (UILabel *)labelWithText:(NSString *)text setFont:(UIFont *)font setTextColor:(UIColor *)textColor{
    UILabel *label = [UILabel labelWithFont:font setTextColor:textColor];
    label.text = text;
    return label;
}

+ (UILabel *)labelWithText:(NSString *)text setFont:(UIFont *)font setTextColor:(UIColor *)textColor setTextAlignment :(NSTextAlignment)textAlignment{
    UILabel *label = [UILabel labelWithText:text setFont:font setTextColor:textColor];
    label.textAlignment = textAlignment;
    return label;
}
@end
